<form method="POST" enctype="multipart/form-data">

{foreach $Grid.PrimaryKeyValues as $Key}
    <input type="hidden" name="pk{$Key.Index}" value="{$Key.Value}" />
{/foreach}

<table class="pgui-vertical-grid-table">
{foreach $Grid.Rows as $Row}
    {$Row.Html}
{/foreach}
</table>
</form>
<a href="#" class="submit_new_record" data-url="test_page.php?c=vertical_grid&a=post&sa=insert">Submit new record</a>
<a href="#" class="submit_current_record" data-url="test_page.php?c=vertical_grid&a=post&sa=update">Save current record</a>
